home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 May / CHIPCD200305.iso / game / cat.swf / scripts / frame_5 / PlaceObject2_479_230 / CLIPACTIONRECORD onClipEvent(keyDown).as next >
Encoding:
Text File  |  2003-03-01  |  483 b   |  28 lines

  1. onClipEvent(keyDown){
  2.    if(Key.isDown(Key.ENTER))
  3.    {
  4.       if(_root.menu == false)
  5.       {
  6.          _root.menu = true;
  7.       }
  8.       else
  9.       {
  10.          _root.menu = false;
  11.       }
  12.    }
  13.    if(_root.menu == true)
  14.    {
  15.       this._visible = true;
  16.       _root.pause = true;
  17.       _root.cbz._x = -4;
  18.       _root.yc = false;
  19.    }
  20.    else
  21.    {
  22.       _root.pause = false;
  23.       this._visible = false;
  24.       _root.cbz._x = -613;
  25.       _root.yc = true;
  26.    }
  27. }
  28.